package ch8new;

import ch8new.Person;

public class Main {

	public static void main(String[] args) {
		System.out.println("main start");
		//Person[] p=new Person[3];
		Person[] persons = new Person[args.length];
		//System.out.println(persons.length);
		for (Integer idx = 0; idx < persons.length; idx++) {
			persons[idx] = new Person(args[idx]);
		//Person p1 = new Person("marek");
		// p1.name = ;
		System.out.println("main object creator"+idx);
		System.out.println("--------------->"+persons[idx].getName());
		}

	}

}

